<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="com.xr.common.UrlMap1" %>
<%@ page import="com.xr.system.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.lang.*" %>
<%@ taglib uri="http://www.bstek.com/dorado" prefix="d" %>

<html>
<head>
<title><%=com.xr.system.userConfig.configHm.get("mainPageTitle")%></title>
<link href="<%=UrlMap1.mapCssUrl("skin.css")%>" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

a:link { text-decoration: none} 
a:active { text-decoration: none } 
a:visited { text-decoration: none } 

.style1 {color: #ffffff}

-->
</style>
<jsp:include page="../../js/message.js"></jsp:include>

<SCRIPT LANGUAGE="JavaScript">
<!--
var helpTipContext='';
var functionId='';
function showtip(){
if(helpTipContext=='')return false;
 var htv=document.getElementById('helpTipDiv');
 var x=3;
 var y=3;
 htv.style.visibility="visible";
 htv.style.left=x+10;
 htv.style.pixelTop=y+document.body.scrollTop+10;
 htv.innerHTML=helpTipContext.replace(/src=\"\.\./g,"src=\"<%=request.getContextPath()%>\/jsp");
}
function hidetip(){
var htv=document.getElementById('helpTipDiv');
 htv.innerHTML="";
 htv.style.visibility="hidden";
}
function functionGuideShow(type)
	{	odiv=document.getElementById('functionGuide');	
		if (type==1) 
		{	odiv.style.visibility='visible';
		}
		else
		{	odiv.style.visibility='hidden';
		}
	}
//-->
</SCRIPT>
</head>
<body style="margin: 0; overflow: hidden" onunload="exit2();" onbeforeunload="exit2();" >
<SCRIPT LANGUAGE="JavaScript">
<!--
	/*firefox*/
function __firefox(){
    HTMLElement.prototype.__defineGetter__("runtimeStyle", __element_style);
    window.constructor.prototype.__defineGetter__("event", __window_event);
    Event.prototype.__defineGetter__("srcElement", __event_srcElement);
}
function __element_style(){
    return this.style;
}
function __window_event(){
    return __window_event_constructor();
}
function __event_srcElement(){
    return this.target;
}
function __window_event_constructor(){
    if(document.all){
        return window.event;
    }
    var _caller = __window_event_constructor.caller;
    while(_caller!=null){
        var _argument = _caller.arguments[0];
        if(_argument){
            var _temp = _argument.constructor;
            if(_temp.toString().indexOf("Event")!=-1){
                return _argument;
            }
        }
        _caller = _caller.caller;
    }
    return null;
}
if(window.addEventListener){
    __firefox();
}
/*end firefox*/

//-->
</SCRIPT>
<%
User user=(User)session.getAttribute("User");
String ContextPath=request.getContextPath();
%> 
<%
   String nextPage="authentication.logout.d";  
   //String nextPage=UrlMap.mapJspUrl("main/style1/logout.jsp");
  
   
   String welcomeString=user.getEmployeeName()+" ";
   
    String ddd= "";
   try{
   com.bstek.dorado.data.db.DBStatement dbs= new com.bstek.dorado.data.db.DBStatement();
   dbs.setSql("select '第<font size=3 color=red><b>'||to_char(sysdate,'Q')||'</b></font>季度 第<font size=3 color=red><b>'||to_char(sysdate,'WW')||'</b></font>周 第<font size=3 color=red><b>'||to_char(sysdate,'DDD')||'</b></font>天 '||to_char(sysdate,'DL') from dual");
   com.bstek.dorado.utils.variant.VariantSet vs=dbs.query();
   ddd+=vs.getString(0);
   dbs.close();
   }catch(Exception e){
     ;
   }
 %>

<SCRIPT LANGUAGE="JavaScript">
<!--
urlContextPath='<%=ContextPath%>';
//alert(urlContextPath);
setTimeout('getResult()',30000);//30秒进行一次请求!
 
//-->
</SCRIPT> 

  <d:View config="com.xr.main.style2.MainFrame">

      <d:Layout type="border" padding="0" border="0">
      <d:Pane position="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100" align="center" background="<%=UrlMap1.mapImageUrl("tbg.jpg")%>">
     <div id='showHelp' style='visibility:hidden'>
     <a onmousemove='showtip()' style="cursor:help" href='#' onclick="window.open('system/function.helpShow.d?functionId='+functionId,'helpWin', 'height=600, width=800, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no')" >帮助提示</a>
     </div>
    </td> 
     <td width="100" align="center" background="<%=UrlMap1.mapImageUrl("tbg.jpg")%>">
    </td> 
    <td background="<%=UrlMap1.mapImageUrl("tbg.jpg")%>" >
     <div align=""><img src="<%=UrlMap1.mapImageUrl("dot.gif")%>" width="8" > <a href="mainFrame.welcome.d" target="frameWorkspace">返回桌面</a></div>
   </td>
    <td align="left" background="<%=UrlMap1.mapImageUrl("tbg.jpg")%>">
    <table width="100%" height="" border="0" align="right" cellpadding="0" cellspacing="0">
      <tr>
        <td width="55%"><span><a href="#"><font size='3'><b><%=welcomeString%></b><span id='dt'><%=ddd%></span></font></a></span></td>
        <td width="10%" > <a onmouseover='functionGuideShow(1);'  style='cursor:pointer;color=#CC0066' title='快捷引导用户使用系统功能。' >功能向导</a></td>
        <td width="35%" align="center"><%--<img src="<%=UrlMap.mapImageUrl("dot.gif")%>" width="8" >&nbsp;&nbsp; <a href="#" onclick="exit1()">退&nbsp;&nbsp;出</a>--%></td>
      </tr>
      <!--  
      <tr>
        <td></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
     -->
    </table>
    </td>
  </tr>
</table>      


      <d:MenuBar id="functionMenubar" />
      </d:Pane>
      <d:Pane position="center">
        <d:SplitPanel id="spiltpanel1" orientation="horizontal" position="160" width="100%" height="100%" padding="0">
          <d:SplitPanel id="spiltpanel2" orientation="vertical" position="100%" width="100%" height="100%" padding="0">
             <iframe id="frameToolsBar" src="mainFrame.toolbar.d" name="toolsBar" frameborder="0" style="width: 100%; height: 100%" onload="hideCovering()"></iframe>
             <d:Splitter />
              <d:SubWindow id="windowDescription" title="帮助文档" width="100%" height="100%" showMinimizeButton="false" showMaximizeButton="true" draggable="false" resizable="false">
                <iframe name="description" frameborder="0" style="width: 100%; height: 100%"></iframe>
              </d:SubWindow>
          </d:SplitPanel>
          <d:Splitter />   
 
            <d:SubWindow id="subwindowWorkspace" title="Main" width="100%" height="100%" showMinimizeButton="false" showMaximizeButton="true" draggable="false" showCloseButton="false" resizable="false">
              <div style="width: 100%; height: 100%; position: relative">
                <iframe id="frameWorkspace" name="frameWorkspace" frameborder="0" style="width: 100%; height: 100%" src="mainFrame.welcome.d">123</iframe>
                <div id="frameCovering" style="left: 0; top: 0; width: 100%; height: 100%; position: absolute; background-color: white; padding: 12; display: none">
                  <table>
                    <tr>
                      <td><img src="<%=UrlMap1.mapImageUrl("loading.gif")%>"></td>
                      <td><b>Loading...</b></td>
                    </tr>
                  </table>
                </div>
              </div>
            </d:SubWindow>
           
            
        </d:SplitPanel>
      </d:Pane>
    </d:Layout>
    
     <d:Control type="SubWindow" id="subwindowPwdTip">
  <br>
  <font size='4' color=red><div align='center' id='pwdTipDiv'></div></font>
       <hr>
      <div align='center'>   <a href='system/chgPasswd.d' onclick='subwindowPwdTip.hide();' target="frameWorkspace"><strong>修改密码</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;
      
       <a href='#' onclick='subwindowPwdTip.hide();'><strong>关闭</strong></a>
        </div>
    </d:Control>
    
  </d:View>
  
<div id='helpTipDiv' onmousemove='showtip()' onmouseout='hidetip()' style='position:absolute; width:70%;  z-index:100;  background-color: #ffffff; border: 1px solid gray; overflow: visible;visibility: hidden;font-size:12px;padding:12px;color:#333333'>
</div>
<div id='functionGuide' onmouseover='functionGuideShow(1);' onmouseout='functionGuideShow(0);' style='position: absolute; visibility: hidden; z-index: 100; width:800px; height: 500px; top: 62px; left: 300px' >

 <iframe  id='functionGuideIframe' width=100% height=100% marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#CC0000" src="jsp/hr/sys/menuGuide.jsp"></iframe>
</div>
    <SCRIPT LANGUAGE="JavaScript">
<!--
//alert(commandRpc.parameters().getValue('laborManNum'))
setTimeout("doLaborEmp(commandRpc.parameters().getValue('laborManNum'))",10000);
//-->
</SCRIPT> 
</body>
<script language="javascript">
  function exit1(){
   top.location.href="<%=nextPage%>";
  }
  function exit2(){
  commandIEClose.execute();
  }
</script>
</html>
